<?php
class Myhook   
{
	function Myhook()
	{
	}
		
	function authorization()
	{
		global $class,$method;
		
	
		$CI = & get_instance();	
			
					
		if( $CI->uri->segment(1) == 'admin' )
		{
		
		}
		
	}
	
	function debug()
	{
		global $class,$method,$debug;
		$CI = & get_instance();	
		$c = $CI->uri->total_segments();
		if( $CI->uri->segment($c)=="debug" )
		{
			$debug = true;
			$CI->output->enable_profiler(TRUE);
		}else
		{
			$debug = false;
		}
		//echo $class,$method;
	} 
}
?>
